<?xml version="1.0" encoding="utf-8"?>
<ns0:RootWorkflowActivityWithData x:Class="Microsoft.SharePoint.Workflow.ROOT" x:Name="ROOT" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ns0="clr-namespace:Microsoft.SharePoint.WorkflowActions;Assembly=Microsoft.SharePoint.WorkflowActions, Version=12.0.0.0, Culture=neutral, PublicKeyToken=null">
	<ns0:RootWorkflowActivityWithData.WorkflowFields>
		<ns0:WorkflowDataField Name="__list" Type="System.String" />
		<ns0:WorkflowDataField Name="__item" Type="System.Int32" />
		<ns0:WorkflowDataField Name="__context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext" />
		<ns0:WorkflowDataField Name="__initParams" Type="Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties" />
		<ns0:WorkflowDataField Name="__workflowId" Type="System.Guid" />
		<ns0:WorkflowDataField Name="InventoryID" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Int320" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Int321" Type="System.Int32" />
		<ns0:WorkflowDataField Name="calc" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Double0" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int322" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Double1" Type="System.Double" />
		<ns0:WorkflowDataField Name="NewQuantity" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int323" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Hashtable0" Type="System.Collections.Hashtable" />
		<ns0:WorkflowDataField Name="_x005f_Double2" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int324" Type="System.Int32" />
		<ns0:WorkflowDataField Name="calc1" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Double3" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int325" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Double4" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int326" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Hashtable1" Type="System.Collections.Hashtable" />
		<ns0:WorkflowDataField Name="_x005f_String0" Type="System.String" />
		<ns0:WorkflowDataField Name="_x005f_Double5" Type="System.Double" />
		<ns0:WorkflowDataField Name="calc2" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Double6" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int327" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Double7" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int328" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Hashtable2" Type="System.Collections.Hashtable" />
		<ns0:WorkflowDataField Name="_x005f_String1" Type="System.String" />
		<ns0:WorkflowDataField Name="_x005f_Double8" Type="System.Double" />
	</ns0:RootWorkflowActivityWithData.WorkflowFields>
	<ns0:OnWorkflowActivated WorkflowProperties="{ActivityBind ROOT,Path=__initParams}" x:Name="ID1">
		<ns0:OnWorkflowActivated.CorrelationToken>
			<wf0:CorrelationToken Name="refObject" OwnerActivityName="ROOT" xmlns:wf0="http://schemas.microsoft.com/winfx/2006/xaml/workflow" />
		</ns0:OnWorkflowActivated.CorrelationToken>
	</ns0:OnWorkflowActivated>
	<ns0:ApplyActivation __Context="{ActivityBind ROOT,Path=__context}" x:Name="ID2" __WorkflowProperties="{ActivityBind ROOT,Path=__initParams}" />
	<IfElseActivity x:Name="ID7" Description="Step 1">
		<IfElseBranchActivity x:Name="ID3">
			<IfElseBranchActivity.Condition>
				<RuleConditionReference ConditionName="__Rule_ID3" />
			</IfElseBranchActivity.Condition>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID5" FieldName="ITItem" LookupFunction="LookupInt" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Int320" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:SetVariableActivity x:Name="ID4" ValueType="System.Int32">
				<ns0:SetVariableActivity.Variable>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:SetVariableActivity.Variable>
				<ns0:SetVariableActivity.Value>
					<ActivityBind Name="ROOT" Path="_x005f_Int320" />
				</ns0:SetVariableActivity.Value>
			</ns0:SetVariableActivity>
			<ns0:FindValueActivity x:Name="ID14" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int322}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID13" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int322}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double0" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID15" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double1" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:MathActivity x:Name="ID12" ValueType="System.Double" Operator="sub">
				<ns0:MathActivity.Variable>
					<ActivityBind Name="ROOT" Path="NewQuantity" />
				</ns0:MathActivity.Variable>
				<ns0:MathActivity.Operand1>
					<ActivityBind Name="ROOT" Path="_x005f_Double0" />
				</ns0:MathActivity.Operand1>
				<ns0:MathActivity.Operand2>
					<ActivityBind Name="ROOT" Path="_x005f_Double1" />
				</ns0:MathActivity.Operand2>
			</ns0:MathActivity>
			<ns0:FindValueActivity x:Name="ID16" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int323}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:ClearHashtableActivity Collection="{ActivityBind ROOT,Path=_x005f_Hashtable0}" x:Name="ID17" />
			<ns0:AddToHashtableActivity x:Name="ID18" Collection="{ActivityBind ROOT,Path=_x005f_Hashtable0}" Key="ITQuantity" ValueType="System.Double">
				<ns0:AddToHashtableActivity.Value>
					<ActivityBind Name="ROOT" Path="NewQuantity" />
				</ns0:AddToHashtableActivity.Value>
			</ns0:AddToHashtableActivity>
			<ns0:UpdateItemActivity __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int323}" ItemProperties="{ActivityBind ROOT,Path=_x005f_Hashtable0}" ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID6" />
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID20" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double2" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:SetFieldActivity x:Name="ID19" FieldName="ITLastQuantity" __Context="{ActivityBind ROOT,Path=__context}" __ListId="{ActivityBind ROOT,Path=__list}" __ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:SetFieldActivity.Value>
					<ActivityBind Name="ROOT" Path="_x005f_Double2" />
				</ns0:SetFieldActivity.Value>
			</ns0:SetFieldActivity>
		</IfElseBranchActivity>
		<IfElseBranchActivity x:Name="ID9">
			<IfElseBranchActivity.Condition>
				<RuleConditionReference ConditionName="__Rule_ID9" />
			</IfElseBranchActivity.Condition>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID11" FieldName="ITItem" LookupFunction="LookupInt" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Int321" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:SetVariableActivity x:Name="ID10" ValueType="System.Int32">
				<ns0:SetVariableActivity.Variable>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:SetVariableActivity.Variable>
				<ns0:SetVariableActivity.Value>
					<ActivityBind Name="ROOT" Path="_x005f_Int321" />
				</ns0:SetVariableActivity.Value>
			</ns0:SetVariableActivity>
			<ns0:FindValueActivity x:Name="ID26" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int325}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID25" FieldName="ITQuantityOnOrder" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int325}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double3" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID27" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double4" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:MathActivity x:Name="ID24" ValueType="System.Double" Operator="add">
				<ns0:MathActivity.Variable>
					<ActivityBind Name="ROOT" Path="NewQuantity" />
				</ns0:MathActivity.Variable>
				<ns0:MathActivity.Operand1>
					<ActivityBind Name="ROOT" Path="_x005f_Double3" />
				</ns0:MathActivity.Operand1>
				<ns0:MathActivity.Operand2>
					<ActivityBind Name="ROOT" Path="_x005f_Double4" />
				</ns0:MathActivity.Operand2>
			</ns0:MathActivity>
			<ns0:FindValueActivity x:Name="ID31" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int326}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:ClearHashtableActivity Collection="{ActivityBind ROOT,Path=_x005f_Hashtable1}" x:Name="ID32" />
			<ns0:AddToHashtableActivity x:Name="ID33" Collection="{ActivityBind ROOT,Path=_x005f_Hashtable1}" Key="ITQuantityOnOrder" ValueType="System.Double">
				<ns0:AddToHashtableActivity.Value>
					<ActivityBind Name="ROOT" Path="NewQuantity" />
				</ns0:AddToHashtableActivity.Value>
			</ns0:AddToHashtableActivity>
			<ns0:UpdateItemActivity __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int326}" ItemProperties="{ActivityBind ROOT,Path=_x005f_Hashtable1}" ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID28" />
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID35" FieldName="ITOrderStatus" LookupFunction="LookupString" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_String0" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:SetFieldActivity x:Name="ID34" FieldName="ITLastOrderStatus" __Context="{ActivityBind ROOT,Path=__context}" __ListId="{ActivityBind ROOT,Path=__list}" __ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:SetFieldActivity.Value>
					<ActivityBind Name="ROOT" Path="_x005f_String0" />
				</ns0:SetFieldActivity.Value>
			</ns0:SetFieldActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID37" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double5" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:SetFieldActivity x:Name="ID36" FieldName="ITLastQuantity" __Context="{ActivityBind ROOT,Path=__context}" __ListId="{ActivityBind ROOT,Path=__list}" __ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:SetFieldActivity.Value>
					<ActivityBind Name="ROOT" Path="_x005f_Double5" />
				</ns0:SetFieldActivity.Value>
			</ns0:SetFieldActivity>
		</IfElseBranchActivity>
		<IfElseBranchActivity x:Name="ID21">
			<IfElseBranchActivity.Condition>
				<RuleConditionReference ConditionName="__Rule_ID21" />
			</IfElseBranchActivity.Condition>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID23" FieldName="ITItem" LookupFunction="LookupInt" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Int324" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:SetVariableActivity x:Name="ID22" ValueType="System.Int32">
				<ns0:SetVariableActivity.Variable>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:SetVariableActivity.Variable>
				<ns0:SetVariableActivity.Value>
					<ActivityBind Name="ROOT" Path="_x005f_Int324" />
				</ns0:SetVariableActivity.Value>
			</ns0:SetVariableActivity>
			<ns0:FindValueActivity x:Name="ID40" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int327}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID39" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int327}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double6" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID41" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double7" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:MathActivity x:Name="ID38" ValueType="System.Double" Operator="add">
				<ns0:MathActivity.Variable>
					<ActivityBind Name="ROOT" Path="NewQuantity" />
				</ns0:MathActivity.Variable>
				<ns0:MathActivity.Operand1>
					<ActivityBind Name="ROOT" Path="_x005f_Double6" />
				</ns0:MathActivity.Operand1>
				<ns0:MathActivity.Operand2>
					<ActivityBind Name="ROOT" Path="_x005f_Double7" />
				</ns0:MathActivity.Operand2>
			</ns0:MathActivity>
			<ns0:FindValueActivity x:Name="ID45" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int328}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:ClearHashtableActivity Collection="{ActivityBind ROOT,Path=_x005f_Hashtable2}" x:Name="ID46" />
			<ns0:AddToHashtableActivity x:Name="ID47" Collection="{ActivityBind ROOT,Path=_x005f_Hashtable2}" Key="ITQuantity" ValueType="System.Double">
				<ns0:AddToHashtableActivity.Value>
					<ActivityBind Name="ROOT" Path="NewQuantity" />
				</ns0:AddToHashtableActivity.Value>
			</ns0:AddToHashtableActivity>
			<ns0:UpdateItemActivity __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int328}" ItemProperties="{ActivityBind ROOT,Path=_x005f_Hashtable2}" ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID42" />
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID49" FieldName="ITOrderStatus" LookupFunction="LookupString" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_String1" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:SetFieldActivity x:Name="ID48" FieldName="ITLastOrderStatus" __Context="{ActivityBind ROOT,Path=__context}" __ListId="{ActivityBind ROOT,Path=__list}" __ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:SetFieldActivity.Value>
					<ActivityBind Name="ROOT" Path="_x005f_String1" />
				</ns0:SetFieldActivity.Value>
			</ns0:SetFieldActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID52" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double8" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:SetFieldActivity x:Name="ID50" FieldName="ITLastQuantity" __Context="{ActivityBind ROOT,Path=__context}" __ListId="{ActivityBind ROOT,Path=__list}" __ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:SetFieldActivity.Value>
					<ActivityBind Name="ROOT" Path="_x005f_Double8" />
				</ns0:SetFieldActivity.Value>
			</ns0:SetFieldActivity>
		</IfElseBranchActivity>
	</IfElseActivity>
</ns0:RootWorkflowActivityWithData>
